/**
 *
 * Copyright 2015 RSVP Technologies Inc. All rights reserved.
 * Route.java
 *
 */
package com.gfinal.map.direction;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.gfinal.map.place.Location;

/**
 * 路线
 * 
 * @author Gao Yudong (gyd@nbicc.com)
 * @date 2015-2-28
 */
public class Route implements Serializable {
	private static final long serialVersionUID = -1584037146706634127L;

	private int distance = 0;
	private int duration = 0;
	private List<Step> steps = new ArrayList<Step>();
	private Location originLocation = null;
	private Location destinationLocation = null;
	/**
	 * 高速收费
	 */
	private float toll = 0;

	public Route() {
		super();
	}

	public int getDistance() {
		return distance;
	}

	public void setDistance(int distance) {
		this.distance = distance;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public List<Step> getSteps() {
		return steps;
	}

	public void setSteps(List<Step> steps) {
		this.steps = steps;
	}

	public Location getOriginLocation() {
		return originLocation;
	}

	public void setOriginLocation(Location originLocation) {
		this.originLocation = originLocation;
	}

	public Location getDestinationLocation() {
		return destinationLocation;
	}

	public void setDestinationLocation(Location destinationLocation) {
		this.destinationLocation = destinationLocation;
	}

	public float getToll() {
		return toll;
	}

	public void setToll(float toll) {
		this.toll = toll;
	}

	@Override
	public String toString() {
		return "Route [distance=" + distance + ", duration=" + duration
				+ ", steps=" + steps + ", originLocation=" + originLocation
				+ ", destinationLocation=" + destinationLocation + ", toll="
				+ toll + "]";
	}
	
}
